<template>
  <div class="component_wrap">
    <el-button @click="handleOpen">打开弹窗</el-button>
  </div>
</template>
<script setup lang="ts">
import { useDialog } from 'lss-ui'

const handleOpen = () => {
  const options = {
    title: '提示',
    content: '这是一个弹窗内容',
    confirmText: '确定',
    cancelText: '取消',
    showHeader: true,
    showFooter: true,
    showConfirmButton: true,
    showCancelButton: true,
    closeIcon: '×',
    showCloseIcon: true,
    width: '400px',
    closeOnClickOverlay: false
  }
  useDialog(options)
}
</script>

<style lang="scss" scoped></style>
